<?php

namespace application\entity\db;

/**
 * @document(cpfunction)
 */
class CpFunction {

    /**
     * @id
     * @col(name=id, type=int, identity=true)
     * @comment(Mã quyền)
     */
    public $id;

    /**
     * @col(name=name, type=varchar, length=50)
     * @comment(Mã user)
     */
    public $name;

    /**
     * @col(name=groupId, type=int, index=index)
     * @comment(Mã user)
     */
    public $groupId;

    /**
     * @col(name=type, type=int)
     * @comment(Kiểu quyền : controller/service)
     */
    public $type;

    /**
     * @col(name=parent, type=int, index=index)
     * @comment(Chức năng cha)
     */
    public $parent;

    /**
     * @col(name=uri, type=varchar, length=220, index=index)
     * @comment(Địa chỉ bắt quyền)
     */
    public $uri;

    /**
     * @col(name=position, type=int, index=index)
     * @comment(Vị trí hiển thị)
     */
    public $position;

    /**
     * @col(name=skip, type=BOOLEAN, index=index)
     * @comment(Bỏ qua quyền)
     */
    public $skip;

}
